﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="login.ascx.cs" Inherits="UserControls_login" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc2" %>
<asp:Panel ID="Pnl" runat="server" Height="90px" Width="270px" BackImageUrl="~/Images/back.jpg" BorderStyle="None">
   
    <span style=" font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#0099CC; font-weight: bold; margin-left: 3px;" 
        > 
                Login Section</span>
    <br />
    <div style="text-align:left; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;">
  <table border="0" cellpadding="0" cellspacing="0" style="margin-top: 3px">
    <tr>
      <td>
          <span style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #808080;
              font-weight: bold; margin-left: 3px;">User Id</span>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
              ErrorMessage="*" ControlToValidate="txtUserId"></asp:RequiredFieldValidator>
      </td>
      <td style="width:5px;">
      </td>
      <td>
        <asp:TextBox runat="server" ID="txtUserId" CssClass="Textboxcss" Width="125px" ></asp:TextBox>
      </td>
      <td style="width:50px;" rowspan="2" align="right">
          <asp:Panel ID="Panel1" runat="server" Width='40' Height="40" 
              BackImageUrl="~/Images/key.png">
          </asp:Panel>
        </td>
    </tr>
    
      <tr>
          <td>
              <span style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #808080;
              font-weight: bold; margin-left: 3px;">Password</span><asp:RequiredFieldValidator
                  ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" 
                  ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
          </td>
          <td style="width:5px;">
          </td>
          <td>
              <asp:TextBox CssClass="Textboxcss" ID="txtPassword" runat="server" 
                  TextMode="Password" Width="125px"></asp:TextBox>
          </td>
      </tr>
     
      <tr style="margin-top:2px;">
          <td>
              &nbsp;<% if (Context.User.Identity.IsAuthenticated)
               {
                   if (Context.User.IsInRole(System.Web.Configuration.WebConfigurationManager.AppSettings["employerrolename"]))
                   {
                   
                    %>
                    <a href="./employer/Default.aspx" title="Go to your home page">Go to panel</a>
                    <%} %>
                    <%
                   else if (Context.User.IsInRole(System.Web.Configuration.WebConfigurationManager.AppSettings["jobseekerrolename"]))
                   {
                    %>
                           <a href="./jobseeker/Default.aspx" title="Go to your home page">Go to panel</a>

                    <%} %>
                    <%} %>
              </td>
          <td style="width:5px;">
            </td>
          <td align="right">
            
                    
              <asp:ImageButton ID="btnLogIn" runat="server" 
                  ImageUrl="~/Images/LOG IN.gif" onclick="ImageButton1_Click" />
          </td>
          <td>
              &nbsp;</td>
      </tr>
      
  </table>
   </div>
</asp:Panel>


<cc2:RoundedCornersExtender ID="round" runat="server" TargetControlID="Pnl" Corners="All" BorderColor="#97B9DF" Radius="5"  >
</cc2:RoundedCornersExtender>


   
  




